<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/18 0018
 * Time: 17:43
 */
namespace app\admin\model;
use think\Db;

class System
{
    /**获取配置项的值
     * @param $strs
     * @return bool|mixed
     */
    static public function get($strs){
        $str = (int)$strs;
        if($str){
            $data = Db::name('system')->where('id',$str)->find();
        }else{
            $data = Db::name('system')->where('identification',$strs)->find();
        }
        if(!$data){
            return null;
        }
        return $data['system_value'];
    }
}